Escrows
Queries all escrows for their chain UID, token, and total balance.
query All_escrows($max: String, $min: String, $skip: Int, $limit: Int) {
router {
all_escrows(max: $max, min: $min, skip: $skip, limit: $limit) {
chain_uid
balance
token
}
}
}
Example
curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query All_escrows($max: String, $min: String, $skip: Int, $limit: Int) {\n router {\n all_escrows(max: $max, min: $min, skip: $skip, limit: $limit) {\n chain_uid\n balance\n token\n }\n }\n}","variables":{"max":null,"min":null,"skip":null,"limit":null}}'
Arguments
Name | Type | Description |
---|---|---|
max | String | The upper limit chain UID to return (exclusive). |
min | String | The lower limit chain UID to start from (inclusive). |
skip | Int | The number of results to skip in the response. |
limit | Int | The maximum number of results to return. |
Return Fields
Field Name | Type | Description |
---|---|---|
chain_uid | String | The UID of the chain that hosts the escrow. |
balance | String | The current amount of tokens held in the escrow. |
token | String | The tokne Id for the token stored in the escrow. |